# mIRC uptime script #
# Type /uptime to see your uptime. #
# You can also right-click on a channel and use the 'Uptime' menu to either message all your uptime info, system uptime info, or server uptime info. #
# Wrote by iYorkie. #

on *:LOAD:{ 
  /echo -a [4Uptime] mIRC Uptime is: $uptime(system,1) $+ . Connected to $network for $uptime(server,1) and connected to $server $+ . 
}

alias uptime {
  /echo -a [4Uptime] System Uptime is: $uptime(system,1) $+ . Connected to $network for $uptime(server,1) and connected to $server $+ .
}

alias uptimeall {
  /msg $chan [4Uptime] System Uptime is: $uptime(system,1) $+ . Connected to $network for $uptime(server,1) and connected to $server $+ .
}

alias uptimesys {
  /msg $chan [4Uptime] System Uptime is: $uptime(system,1) 
}

alias uptimeserver {
  /msg $chan [4Uptime] Connected to $network for $uptime(server,1) and connected to $server $+ .
}

menu channel {
  .Uptime
  ..Uptime All:/uptimeall
  ..Uptime System:/uptimesys
  ..Uptime Server:/uptimeserver
}
